cmake_minimum_required(VERSION 3.10.0)

project(bb8subscriber)


if (CMAKE_HOST_UNIX)
    set(INC_DIR ${PROJECT_SOURCE_DIR}/include)
    set(LINK_DIR ${PROJECT_SOURCE_DIR}/lib/linux)
endif()

file(GLOB SOURCES_AND_HEADERS "*.cpp" "include/*.h" "includes/*.dtd" "includes/*.xml" "src/*.cpp" "src/*.c")

include_directories(${INC_DIR} /usr/local/include)
link_directories(${LINK_DIR} /usr/local/lib)

find_package(Boost REQUIRED COMPONENTS
program_options
)
if (NOT Boost_FOUND)
    message("Boost not found")
endif()

add_executable(bb8subscriber bb8subscriber.cpp ${SOURCES_AND_HEADERS})

target_link_libraries(bb8subscriber PUBLIC thostmduserapi_se thosttraderapi_se zmq ${Boost_LIBRARIES})